package com.yanfan.ledger.domain;

import com.yanfan.common.annotation.Excel;
import com.yanfan.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备基础信息对象 iot_device_ledger
 *
 * @author kerwincui
 * @date 2024-08-05
 */
public class DeviceLedger extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String serialNumber;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 管理部门名称 */
    @Excel(name = "管理部门名称")
    private String manageDeptName;

    /** 存放地点 */
    @Excel(name = "存放地点")
    private String storageLocation;

    /** 使用状况 */
    @Excel(name = "使用状况")
    private String useSituation;

    /** 使用年限 */
    @Excel(name = "使用年限")
    private String useYear;

    /** 保养计划id */
    @Excel(name = "保养计划id")
    private Long planId;

    /** 巡检计划id */
    @Excel(name = "巡检计划id")
    private Long inspectionId;

    /** 设备规格 */
    @Excel(name = "设备规格")
    private String deviceSpecification;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeviceId(Long deviceId)
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId()
    {
        return deviceId;
    }
    public void setDeviceName(String deviceName)
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName()
    {
        return deviceName;
    }
    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber()
    {
        return serialNumber;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setManageDeptName(String manageDeptName)
    {
        this.manageDeptName = manageDeptName;
    }

    public String getManageDeptName()
    {
        return manageDeptName;
    }
    public void setStorageLocation(String storageLocation)
    {
        this.storageLocation = storageLocation;
    }

    public String getStorageLocation()
    {
        return storageLocation;
    }
    public void setUseSituation(String useSituation)
    {
        this.useSituation = useSituation;
    }

    public String getUseSituation()
    {
        return useSituation;
    }
    public void setUseYear(String useYear)
    {
        this.useYear = useYear;
    }

    public String getUseYear()
    {
        return useYear;
    }
    public void setPlanId(Long planId)
    {
        this.planId = planId;
    }

    public Long getPlanId()
    {
        return planId;
    }
    public void setInspectionId(Long inspectionId)
    {
        this.inspectionId = inspectionId;
    }

    public Long getInspectionId()
    {
        return inspectionId;
    }
    public void setDeviceSpecification(String deviceSpecification)
    {
        this.deviceSpecification = deviceSpecification;
    }

    public String getDeviceSpecification()
    {
        return deviceSpecification;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("deviceName", getDeviceName())
            .append("serialNumber", getSerialNumber())
            .append("productName", getProductName())
            .append("manageDeptName", getManageDeptName())
            .append("storageLocation", getStorageLocation())
            .append("useSituation", getUseSituation())
            .append("useYear", getUseYear())
            .append("planId", getPlanId())
            .append("inspectionId", getInspectionId())
            .append("deviceSpecification", getDeviceSpecification())
            .toString();
    }
}
